package light.mvc.model.workflow;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import light.mvc.model.base.IdEntity;
import light.mvc.model.sys.Tuser;

/**
 * 审批信息
 * 
 * @author tyg
 * 
 */
@Entity
@Table(name = "workflow_approveInfo")
public class TapproveInfo extends IdEntity implements java.io.Serializable{
	private Tform form; // 
	private Tuser approver;// 审批人

	private Date approveTime;// 审批时间
	private boolean approval; // 是否通过
	private String comment; // 审批意见

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "approverid")
	public Tuser getApprover() {
		return approver;
	}

	public void setApprover(Tuser approver) {
		this.approver = approver;
	}

	public Date getApproveTime() {
		return approveTime;
	}

	public void setApproveTime(Date approveTime) {
		this.approveTime = approveTime;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "form_id")
	public Tform getForm() {
		return form;
	}

	public void setForm(Tform form) {
		this.form = form;
	}

	public boolean isApproval() {
		return approval;
	}

	public void setApproval(boolean approval) {
		this.approval = approval;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}
